// 客户合同
import request from "@/utils/https/requests";

// 列表
export function dwHtInfoList(data: any) {
    return request({
        url: "/dwHtInfo/list", method: "post", data,
    });
}

// 添加
export function postAddDwHtInfo(data: any) {
    return request({
        url: "/dwHtInfo/postAdd", method: "post", data,
    });
}

// 修改
export function postModDwHtInfo(data: any) {
    return request({
        url: `/dwHtInfo/postMod/{${data.id}`, method: "post", data,
    });
}

// 删除
export function postDeleteDwHtInfo(id: string) {
    return request({
        url: `/dwHtInfo/postDelete/${id}`, method: "post",
    });
}

// 逻辑 删除
export const postLogicDeleteDwHtInfo = (id) => {
    return request({
        url: `/dwHtInfo/postLogicDelete/${id}`, method: 'post'
    })
}

// 详情
export function dwHtInfoDetail(id: string) {
    return request({
        url: `/dwHtInfo/detail/${id}`, method: "post",
    });
}